/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package olympicgameslogic;

import java.io.Serializable;

/**
 *
 * @author Nuno
 */
public class MedalTeam extends Medal implements Serializable{
   
   private Team team;

   public MedalTeam(Team team,  EditionDisciplineEvent editionDisciplineEvent,  MEDALTYPE medalType) {
      super(editionDisciplineEvent,  medalType);
      this.team = team;
   }

   /**
    * @return the team
    */
   public Team getTeam() {
      return team;
   }

   /**
    * @param team the team to set
    */
   public void setTeam(Team team) {
      this.team = team;
   }

   @Override
   public String toString() {
      return "\n---------" +super.toString()+ " " +team;
   }

   @Override
   public int compareTo(Medal o) {
      throw new UnsupportedOperationException("Not supported yet.");
   }
   
   
   
   
   
   
}
